package cn.yunhe.entity;

import java.util.List;

public class Page<T> {
	private int currentPage;
	private int pageMax=5;
	private int count;
	private int pageCount;
	private List<T> list;
	
	public Page() {
		super();
	}
	public Page(int currentPage, int pageMax, int count, int pageCount) {
		super();
		this.currentPage = currentPage;
		this.pageMax = pageMax;
		this.count = count;
		this.pageCount = pageCount;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public int getPageCount() {
		return pageCount;
	}
	public void setPageCount(int pageCount) {
		this.pageCount = pageCount;
	}
	
	public int getCurrentPage() {
		return currentPage;
	}
	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}
	public int getPageMax() {
		return pageMax;
	}
	public void setPageMax(int pageMax) {
		this.pageMax = pageMax;
	}
	public List<T> getList() {
		return list;
	}
	public void setList(List<T> list) {
		this.list = list;
	}
	@Override
	public String toString() {
		return "Page [currentPage=" + currentPage + ", pageMax=" + pageMax + ", list=" + list + "]";
	}
	
}
